<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/6/29
  Time: 18:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!Doctype html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>政府数据开放平台</title>
    <jsp:include page="../commons/include.jsp"/>

    <link href="/resources/css/lib.css" rel="stylesheet">


    <style>


        #main {

            -webkit-box-shadow: 0 4px 61px rgba(0, 0, 0, 0.1);
            background: #FFF;
            width: 1000px;
            margin: auto;
            overflow-y: auto;
        }


    </style>

</head>
<body>


<jsp:include page="../commons/top.jsp"/>

<div class="" id="main" style="margin-top: 50px">

    <div>
        <ol class="breadcrumb">
            <li><a href="/">首页</a></li>
            <li><a href="/front/user/modifyV?id=${requestScope.user.id}">个人资料</a></li>
        </ol>
    </div>


    <div class="left">
        <div class="title">账号信息设置</div>
        <div class="content">
            <div> 你的个人档案可以让其他用户了解你是谁以及你是做什么的。</div>

        </div>


    </div>
    <div class="right">
        <div class="title">账号信息设置</div>
        <form action="/front/user/modify" method="post" enctype="multipart/form-data">
            <div>


                <div class="input_line">
                    <div class="input_line_key">编号:</div>
                    <div class="input_line_value">
                        <input type="text" name="id" class="form-control" value="${requestScope.user.id}" readonly>

                    </div>
                </div>


                <div class="input_line">
                    <div class="input_line_key">账号:</div>
                    <div class="input_line_value">
                        <input type="text" name="username" class="form-control" value="${requestScope.user.username}"
                               readonly>
                    </div>
                </div>

                <div class="input_line">
                    <div class="input_line_key">邮箱:</div>
                    <div class="input_line_value">
                        <input type="text" name="email" class="form-control" value="${requestScope.user.email}"
                               readonly>
                    </div>
                </div>



                <div class="input_line">
                    <div class="input_line_key">手机号码:</div>
                    <div class="input_line_value">
                        <input type="text" name="telephone" class="form-control"
                                   value="${requestScope.user.telephone}" >

                    </div>
                </div>

                <div class="input_line">
                    <div class="input_line_key">真实姓名:</div>
                    <div class="input_line_value">
                        <input type="text" name="realname" class="form-control"
                               value="${requestScope.user.realname}">

                    </div>
                </div>


                <div class="input_line">
                    <div class="input_line_key"> 性别:</div>
                    <div class="input_line_value">

                        <input type="radio" name="sex" style="display: inline;width: 30px"
                               <c:if test="${requestScope.user.sex.id==161}">checked</c:if> value="161"> 男

                        <input type="radio" name="sex" style="display: inline;width: 30px"
                               <c:if test="${requestScope.user.sex.id==162}">checked</c:if> value="162"> 女


                    </div>
                </div>


                <div class="input_line">
                    <div class="input_line_key"> 生日:</div>
                    <div class="input_line_value">
                        <input type="date" name="birthday" class="form-control"
                               value='<fmt:formatDate value="${requestScope.user.birthday}" pattern="yyyy-MM-dd"/>'/>


                    </div>
                </div>


                <div class="input_line">
                    <div class="input_line_key"> QQ号码:</div>
                    <div class="input_line_value">
                        <input type="text" name="QQ" class="form-control" value="${requestScope.user.QQ}"
                               check-type="required">
                    </div>
                </div>


                <div class="input_line">
                    <div class="input_line_key"> 头 像:</div>
                    <div class="input_line_value">
                        <img src="${requestScope.user.headImage}"
                             style="width: 80; height: 80px;" align="left">
                        建议头像大小为80*80像素
                    </div>
                    <div style="clear: both;padding-left: 150px">
                        <input type="file" name="headImage" value="修改" class="form-control" style="width: 100px;">
                    </div>
                </div>
            </div>


            <div class="input_line" style="margin-top: 20px">
                <div class="input_line_key"> 自我介绍:</div>
                <div class="input_line_value">
                    <textarea class="form-control" name="description" rows="8" cols="20">${requestScope.user.description}</textarea>
                </div>
            </div>

            <hr style="width: 96%; background-color: rgb(221,221,221) ; height:1px; margin-top: 150px">

            <div style="text-align: right;padding:20px ">
                <button type="submit" class="btn btn-primary">保&nbsp;&nbsp;存</button>
            </div>

    </div>
    </form>
</div>
</div>


<jsp:include page="../commons/buttom.jsp"/>
</body>
</html>
